From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Thu, 7 Nov 2024 21:09:47 +0000 (-0700) Subject: update precompiled header list. (#1372) X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2^2~18 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22%22?a=commitdiff_plain;h=679857c3f8ebaf70bc6c44561124b03af85569cf;p=gpsbabel.git update precompiled header list. (#1372) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 27817f17e..e6fa520bf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,22 +39,32 @@ endif() option(GPSBABEL_ENABLE_PCH "enable precompiled headers." ON) if (GPSBABEL_ENABLE_PCH) + # This list is from defs.h. target_precompile_headers(gpsbabel PRIVATE - "$<$:>" "$<$:>" - "$<$:>" "$<$:>" "$<$:>" "$<$:>" "$<$:>" + "$<$:>" "$<$:>" "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" + "$<$:>" "$<$:>" "$<$:>" - "$<$:>" "$<$:>" + "$<$:>" "$<$:>" - "$<$:>" + ) + if(${Qt6Core_VERSION} VERSION_GREATER_EQUAL 6.5) + target_precompile_headers(gpsbabel PRIVATE + "$<$:>" + ) + endif() + target_precompile_headers(gpsbabel PRIVATE "$<$:>" "$<$:>" ) diff --git a/precompiled_headers.h b/precompiled_headers.h deleted file mode 100644 index bcf1b63b0..000000000 --- a/precompiled_headers.h +++ /dev/null @@ -1,41 +0,0 @@ -/* - Copyright (C) 2002-2014 Robert Lipe, robertlipe+source@gpsbabel.org - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - - */ - -// This list is from defs.h. Adding other commonly used headers doesn't help. - -#if defined __cplusplus -#include // for sort, stable_sort -#include // for va_list -#include // for NULL, nullptr_t, size_t -#include // for int32_t, uint32_t -#include // for NULL, fprintf, FILE, stdout -#include // for time_t -#include // for inv_pi, pi -#include // for optional -#include // for move - -#include // for QDebug -#include // for QList, QList<>::const_reverse_iterator, QList<>::reverse_iterator -#include // for QScopedPointer -#include // for QString -#include // for QTextCodec -#include // for QVector -#include // for CaseInsensitive -#include // for foreach -#endif